﻿using System;
using System.Collections.Generic;
using System.Text;
using Watchdog.Bll.Base;
using Watchdog.Bll.Factory;

namespace Watchdog.Bll {

    public partial class Config : ConfigBase {

        internal Config () : base () {}

        internal Config ( Facade.Config config ) : base (config) { }
		
		#region [ Parent objects ]

		private Definition definition;
		public new Definition Definition {
			get {
				if ( definition == null )
					 definition = DefinitionFactory.GetById(base.Definition);
				return definition;
			}
			set { 
				definition = value;
				base.Definition = value.Id;
			}
		}

		#endregion

		#region [ Many to many relations ]

		#endregion

		#region [ Add & Remove methods for many to many relations ]

		#endregion
		
		#region [ One to many relations ]

		#endregion
		
		#region [ Add & Remove methods for one to many relations ]

		#endregion

    }
}
